package com.zhuidian.mothernote.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.base.adapter.BaseRecyclerAdapter;
import com.zhuidian.mothernote.R;

public class RedDevelopsDetailAdapter extends BaseRecyclerAdapter<String> {

    public RedDevelopsDetailAdapter(Context context) {
        super(context);
    }


    @Override
    protected RecyclerView.ViewHolder onCreateItemViewHolder(ViewGroup parent) {
        return new RedDevelopsDetailAdapter.MyViewHolder(inflate(R.layout.adapter_red_develops_detail));
    }

    public class MyViewHolder extends ItemViewHolder {

        private FrameLayout fl;
        private ImageView imageView;
        private TextView tv_money;
        private TextView tv_content;
        private RelativeLayout rl_red_endevelops;

        public MyViewHolder(View view) {
            super(view);
            fl = (FrameLayout) view.findViewById(R.id.fl);
            imageView = (ImageView) view.findViewById(R.id.imageView);
            tv_money = (TextView) view.findViewById(R.id.tv_money);
            tv_content = (TextView) view.findViewById(R.id.tv_content);
            rl_red_endevelops =(RelativeLayout) view.findViewById(R.id.rl_red_endevelop);
        }

        @Override
        protected void setListener(int position) {

        }

        @Override
        protected void initValue(int position, String string) {

        }
    }
}
